<%@page import="domain.service.Utils"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<%@page import="domain.model.Whois"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html;charset=UTF-8" language="java"%>
<%
String ip = (String) request.getAttribute("ip");
String title = (String) request.getAttribute("title");
String description = (String) request.getAttribute("description");
String keywords = (String) request.getAttribute("keyword");
List<Whois> listWhois = (List<Whois>) request.getAttribute("listWhois");

Cache cache=null;

try {
    cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap());
} catch (CacheException e) {
   e.printStackTrace();
   
}

%>
<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
</jsp:include>
		<div class="bd al">
			<div class="bdl l">

				<h1 class="tt">Whois domain</h1>
				<form action="/search-whois" class="sea">
					<input type="text" name="name"/>
					<button>Whois</button>
					<br/>
					Example Searches : <a href="/whois/childsgame.net">childsgame.net</a> , <a href="/whois/yooarticles.com">yooarticles.com</a>
				</form>
				
			</div>
			<div class="bdr r">
				<h2>Your ip : <font><%=ip %></font></h2>
				<%@ include file='/adv/right250.jsp'%>
				<%@ include file='/element/menu_left.jsp'%>
			</div>
			<div class="cl"></div>
		</div>
<%@ include file='/layout/footer.jsp'%>